﻿@{
    Layout = null;
}
@model List<ElingOA6_DSJCJ.Model.Config> 
@using ElingOA6_DSJCJ.Common;
@{
    string ndate = ViewData["ndate"].ToString();
}
@helper  GetConfigValue(string keyName, string configClass)
    {
        
        List<ElingOA6_DSJCJ.Model.Config> tmpList = Model.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
            ElingOA6_DSJCJ.Model.Config tmpModel = tmpList[0];
            if (tmpModel.FIsWithDocCls == "Y")
            {
    <a href="/Index/DocumentIndex?keyName=@keyName&keyClass=@configClass" target="_blank">@tmpModel.FShowText</a>
            }
            else
            {
    <a href="@tmpModel.FKeyValue" target="_blank">@tmpModel.FShowText</a>
            }
        }
}
@helper  GetConfigShowText(string keyName, string configClass, List<ElingOA6_DSJCJ.Model.Config> configList)
    {
        List<ElingOA6_DSJCJ.Model.Config> tmpList = configList.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FShowText
        }

}
@helper  GetConfigValue(string keyName, string configClass, List<ElingOA6_DSJCJ.Model.Config> configList)
    {
        List<ElingOA6_DSJCJ.Model.Config> tmpList = configList.Where(s => s.FKeyName == keyName && s.FConfigClass == configClass).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FKeyValue
        }

}
<script type="text/javascript">
    function querya() {
        //        var keyName = $("#selChooseDocCls").val();
        var keyName = "-1";
        var keyText = $.trim($('#head_searchText_id').val());
        keyText = escape(keyText);
        if (keyText == "") {
            alert("请输入关键字");
        }
        else {
            window.open("/Index/DocQueryList?keyName=" + keyName + "&keyText=" + keyText, "");
        }
    }
</script>
<!--头部flash-->
<div class="header">
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1000"
        height="145">
        <param name="movie" value="@Url.Content("~/Content/images/top.swf")" />
        <param name="quality" value="high" />
        <param name="wmode" value="opaque" />
        <param name="swfversion" value="11.0.0.0" />
        <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf" />
        <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="@Url.Content("~/Content/images/top.swf")" width="1000" height="145">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="11.0.0.0" />
            <param name="expressinstall" value="../Scripts/expressInstall.swf" />
            <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
            <div>
                <h4>
                    此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
                <p>
                    <a href="http://www.adobe.com/go/getflashplayer">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                            alt="获取 Adobe Flash Player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
    </object>
</div>
<!--头部flash EMD-->
<div class="nav">
    <div class="topNav">
        <a href="@Url.Action("Index", "Index")" target="_blank">首页</a>
        @GetConfigValue("nav_link1", "01")
        @GetConfigValue("nav_link2", "01")
        @GetConfigValue("nav_link3", "01")
        @GetConfigValue("nav_link4", "01")
        @GetConfigValue("nav_link5", "01")
        @GetConfigValue("nav_link6", "01")
        @GetConfigValue("nav_link7", "01")
        @GetConfigValue("nav_link8", "01")
    </div>
    <div class="topHeadeRight">
        <span class="topSearch">
            <input class="topSearchBtn" type="submit" value="">
            <input id="head_searchText_id" name="world" type="text" class="topSearchTxt" style="width: 138px">
        </span><span class="topSearch" style="border: 0; ">
            <input name="" type="image" src="@Url.Content("~/content/images/nav-search.jpg")" onclick="querya()"></span>
    </div>
</div>
